#include "TreeStruct.h"
#include "Level.h"
#include "ImgMgr.h"

TreeStruct::TreeStruct() : RessourceStruct()
{
}

void TreeStruct::init(const sf::Vector2f position, ImgMgr *imageManager)
{
	m_skin = imageManager->getSprite(12);
	m_skin.setScale(4, 4);
	m_vie = 15;
	m_name = "Arbre";
	RessourceStruct::init(sf::Vector2f((float)random((int)position.x - 8, (int)position.x + 8), (float)random((int)position.y - 8, (int)position.y + 8)), imageManager);
}

